package com.his.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 重要操作记录
 * @TableName dzm_his_work_log
 */
public class DzmHisWorkLog implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 关联表名
     */
    private String tabName;

    /**
     * 操作相关id
     */
    private Integer relId;

    /**
     * 操作说明
     */
    private String title;

    /**
     * 操作时间
     */
    private Date addtime;

    /**
     * 操作者session
     */
    private String session;

    /**
     * 操作者cookie
     */
    private String cookie;

    /**
     * 操作IP
     */
    private String ip;

    /**
     * 开发信息
     */
    private String devInfo;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 关联表名
     */
    public String getTabName() {
        return tabName;
    }

    /**
     * 关联表名
     */
    public void setTabName(String tabName) {
        this.tabName = tabName;
    }

    /**
     * 操作相关id
     */
    public Integer getRelId() {
        return relId;
    }

    /**
     * 操作相关id
     */
    public void setRelId(Integer relId) {
        this.relId = relId;
    }

    /**
     * 操作说明
     */
    public String getTitle() {
        return title;
    }

    /**
     * 操作说明
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 操作时间
     */
    public Date getAddtime() {
        return addtime;
    }

    /**
     * 操作时间
     */
    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    /**
     * 操作者session
     */
    public String getSession() {
        return session;
    }

    /**
     * 操作者session
     */
    public void setSession(String session) {
        this.session = session;
    }

    /**
     * 操作者cookie
     */
    public String getCookie() {
        return cookie;
    }

    /**
     * 操作者cookie
     */
    public void setCookie(String cookie) {
        this.cookie = cookie;
    }

    /**
     * 操作IP
     */
    public String getIp() {
        return ip;
    }

    /**
     * 操作IP
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * 开发信息
     */
    public String getDevInfo() {
        return devInfo;
    }

    /**
     * 开发信息
     */
    public void setDevInfo(String devInfo) {
        this.devInfo = devInfo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisWorkLog other = (DzmHisWorkLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTabName() == null ? other.getTabName() == null : this.getTabName().equals(other.getTabName()))
            && (this.getRelId() == null ? other.getRelId() == null : this.getRelId().equals(other.getRelId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime()))
            && (this.getSession() == null ? other.getSession() == null : this.getSession().equals(other.getSession()))
            && (this.getCookie() == null ? other.getCookie() == null : this.getCookie().equals(other.getCookie()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
            && (this.getDevInfo() == null ? other.getDevInfo() == null : this.getDevInfo().equals(other.getDevInfo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTabName() == null) ? 0 : getTabName().hashCode());
        result = prime * result + ((getRelId() == null) ? 0 : getRelId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode());
        result = prime * result + ((getSession() == null) ? 0 : getSession().hashCode());
        result = prime * result + ((getCookie() == null) ? 0 : getCookie().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        result = prime * result + ((getDevInfo() == null) ? 0 : getDevInfo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", tabName=").append(tabName);
        sb.append(", relId=").append(relId);
        sb.append(", title=").append(title);
        sb.append(", addtime=").append(addtime);
        sb.append(", session=").append(session);
        sb.append(", cookie=").append(cookie);
        sb.append(", ip=").append(ip);
        sb.append(", devInfo=").append(devInfo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}